package Submitter;

public class Submission {
	
	private int id;			//Hibernate缂佺喓绱狪D
	private String status;		//閻樿埖锟斤拷
	private String additionalInfo;	//妫版繂顦绘穱鈩冧紖閿涘矁顔囪ぐ鏇犵椽鐠囨垿鏁婄拠顖滅搼娣団剝浼�
	private String realRunId;	//閸︺劌甯玂J閻ㄥ嚧unId

	private int time;			//鏉╂劘顢戦弮鍫曟？(閺堢嫕C閹绘劒姘︽稉铏光敄	閸楁洑缍�:ms)
	private int memory;			//鏉╂劘顢戦崘鍛摠(閺堢嫕C閹绘劒姘︽稉铏光敄	閸楁洑缍�:KB)
	//private Date subTime;		//閹绘劒姘﹂弮鍫曟？
	
	private String language;	//鐠囶叀鈻�
	private String source;		//濠ф劒鍞惍锟�
	private String originPid;
	
	private String user;
	private String soj;
	
	public String getUser() {
		return user;
	}
	
	public String getSoj() {
		return soj;
	}
	
	public String getRealRunId() {
		return realRunId;
	}
	public void setRealRunId(String realRunId) {
		this.realRunId = realRunId;
	}
	public String getStatus()
	{
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public void setAdditionalInfo(String additionalInfo) {
		if (additionalInfo != null && additionalInfo.length() > 10000) {
			additionalInfo = additionalInfo.substring(0, 10000) + "\n\n閳ワ腹锟斤腹锟斤腹锟斤拷";
		}
		this.additionalInfo = additionalInfo;
	}
	
	public String getAdditionalInfo() {
		return additionalInfo;
	}
	
	public String getLanguage() {
		return language;
	}
	public void setLanguage(String language) {
		this.language = language;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public String getPid()
	{
		return originPid;
	}
	
	public void setPid(String pid)
	{
		this.originPid = pid;
	}
	
	public void setId(int id)
	{
		this.id = id;
	}
	public int getId() {
		// TODO Auto-generated method stub
		return id;
	}
	public int getTime() {
		return time;
	}
	public void setTime(int time) {
		this.time = time;
	}
	public int getMemory() {
		return memory;
	}
	public void setMemory(int memory) {
		this.memory = memory;
	}
	
	public void setUser(String user) {
		this.user=user;
	}
	
	public void setSoj(String soj) {
		this.soj=soj;
	}
	
}
